import javax.annotation.processing.Completion;
import java.io.Serializable;

public class Person implements Serializable,Comparable{

    @Override
    public int compareTo(Object o) {
        return 0;
    }

    // 限定接口时可以有多个，但是如果限定类的话就只能够有一个,并且为第一个
    public static <T extends  Serializable & Comparable > T getResult(T param){
        return param;
    }

    public static <T extends Comparable > T getOne(T param){
        return param;
    }

    public static  <T extends  Serializable> T getSer(T person) {
        return person;
    }

    public  <T extends  Person> Person getPerson(){
        return  this;
    }

    public  <T extends  Serializable> Person getSer(){
        return  this;
    }
}
